{include file="public/layout" /}
<link rel="stylesheet" type="text/css" href="/public/static/css/comment.css" />
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 
	<span class="c-gray en">&gt;</span> 商品管理 
	<span class="c-gray en">&gt;</span> 评价管理
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page">
    <div class="wrapper">
        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">评论回复
                            <a data-original-title="返回" class="pull-right" style="margin-top:-8px;" title="" data-toggle="tooltip" href="/Admin/Comment/lists"><img src="/public/h-ui.admin/images/back.png" width="30" height="30"></a>
                        </h3>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                        <div class="col-md-2"></div>
                            <div class="col-md-8">
                                <!-- DIRECT CHAT PRIMARY -->
                                <div class="box direct-chat direct-chat-primary">
                                    <div class="box-header with-border">
                                        <h3 class="box-title">用户评论</h3>
                                    </div><!-- /.box-header -->
                                      <div class="box-body">
                                        <!-- Conversations are loaded here -->
                                        <div class="">
                                            <!-- Message. Default to the left -->
                                            <div class="direct-chat-msg">
                                                <div class="direct-chat-info clearfix">
                                                    <span class="direct-chat-name pull-left">{$comment.username}</span>
                                                    <span class="direct-chat-timestamp pull-right" style="margin-right: 20px;">{$comment.add_time|date="Y-m-d H:i"}</span>
                                                </div><!-- /.direct-chat-info -->
                                                <img src="/public/static/images/user1-128x128.jpg" class="direct-chat-img">
                                                <div class="direct-chat-text">{$comment.content}
                                                    <p>
                                                    	{if $comment}
                                                        {foreach name="$comment.img" item="v" }
                                                            <img src="{$v}" style="height: 50px;width: 50px" onmouseover="layer.tips('<img src=\'{$v}\' style=\'height:500px;width: 500px\'>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">
                                                        {/foreach}
                                                        {/if}
                                                    </p>
                                            	</div>
                                           {if $reply}
                                           {foreach name="reply" item="v" }
                                                <div class="direct-chat-msg right">
                                                    <div class="direct-chat-info clearfix direct-right">
                                                        <span class="direct-chat-name pull-right">管理员</span>
                                                        <span class="direct-chat-timestamp pull-left">{$v.add_time|date="Y-m-d H:i"}</span>
                                                    </div><!-- /.direct-chat-info -->
                                                    <img alt="管理员" src="/public/static/images/seller/default_user_portrait.gif" class="direct-chat-img"><!-- /.direct-chat-img -->
                                                    <div class="direct-chat-text" >{$v.content}</div>
                                                </div>
                                            {/foreach}
                                            {/if}
                                        </div> 
                                        <!-- /.direct-chat-pane -->
                                    </div><!-- /.box-body -->
                                    <!-- /.box-footer-->
                                </div><!--/.direct-chat -->
                            </div>       
                            <div class="col-md-2"></div>
                         <div class="panel panel-default">
                                <div class="panel-body">
                                    <div class="row">
                                    <div class="col-md-2"></div>
                                    <div class="col-md-8">
                                    <form method="post">
                                    <textarea class="form-control" rows="3" placeholder="请输入回复内容" name="content"></textarea><div class="form-group"><button type="submit" class="btn btn-primary pull-right margin" style="margin-left: 600px;">回复</button></div>
                                    </form>            
                                    </div>
                                    <div class="col-md-2"></div>                                                          
                                    </div>
                              </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /.row -->
        </div></section>
        <!-- /.content -->
    </div>
</div>
{include file="public/footer" /}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/public/h-ui.admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
</body>
</html>